﻿@model CleverCMS.Cms.Services.ViewModels.LocalPasswordModel
@section TitleContent
{
    Manage account
}
<h2>Manage account</h2>

<div class="row-fluid">
    <div class="span12">
        <div class="widget green">
            <div class="widget-title">
                <h4><i class="icon-reorder"></i>Manage account</h4>
            </div>
            <div class="widget-body form">
                <p class="message-success">@ViewBag.StatusMessage</p>

                @if (ViewBag.HasLocalPassword)
                {
                    @Html.Partial("_ChangePasswordPartial")
                }
                else
                { 
                    @Html.Partial("_SetPasswordPartial")
                }
            </div>
        </div>
    </div>
</div>

<div class="row-fluid">
    <div class="span12">
        <div class="widget green">
            <div class="widget-title">
                <h4><i class="icon-reorder"></i></h4>
            </div>
            <div class="widget-body form">
                @Html.Action("RemoveExternalLogins")
            </div>
        </div>
    </div>
</div>

<div class="row-fluid">
    <div class="span12">
        <div class="widget green">
            <div class="widget-title">
                <h4><i class="icon-reorder"></i>Add an external login</h4>
            </div>
            <div class="widget-body form">
                @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
            </div>
        </div>
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
